﻿<T:AbstractTaskControl x:Class="Deployment.Data.SQL.Tasks.UI.SQLScriptTaskControl"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                       xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                       xmlns:T="clr-namespace:Deployment.Data.Deploy.Steps.Tasks;assembly=Deployment.Data"
                       xmlns:myUI="clr-namespace:Deployment.Data.SQL.Tasks.UI"
                       mc:Ignorable="d" 
                       d:DesignHeight="300" d:DesignWidth="300">
   
    <GroupBox Header="SQL Script Task">
        <Grid Margin="4">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <Label Grid.Row="0" Grid.Column="0"
               Margin="2"
               Padding="2"
               VerticalAlignment="Center"
               Content="Connection:"/>
            <ComboBox Grid.Row="0" Grid.Column="1"
                      Grid.ColumnSpan="2"
                      IsEditable="True"
                      x:Name="ConnectionCombo"
                      Text="{Binding Connection}"
                      Margin="2"
                      Padding="2"
                      VerticalAlignment="Center"
                      />

            <Label Grid.Row="1" Grid.Column="0"
                   Margin="2"
                   Padding="2"
                   VerticalAlignment="Center"
                   Content="Script file:"/>

            <TextBox Grid.Row="1" Grid.Column="1"
                 Margin="2"
                 Padding="2"
                 VerticalAlignment="Center"
                 Text="{Binding Script}"/>
            <Button Grid.Row="1" Grid.Column="2"
                Margin="2"
                Padding="4,2,4,2"
                VerticalAlignment="Center"
                Content="..."
                Click="Browse_Click"/>

        </Grid>
    </GroupBox>
</T:AbstractTaskControl>
